/**
 * 本文件用于 创建 reducer 函数，
 */

const initState = {
  value: '我是默认值',
}

export const reducer = (state=initState, action) => {
  switch (action.type) {
    case 'send_action':
      return {
        ...state,
        ...action,
      }
  
    default:
      return state;
  }
}